    <div id="seach_view_1111">
        <div style="padding:5px 5px; border-bottom: dashed #d2d2d2 1px;margin-bottom: 5px;">
            学生名称: <input class="easyui-textbox" style="width:110px" id="student_name">
            身份证号: <input class="easyui-textbox" style="width:110px" id="student_id_cart">
            <a href="javascript://" class="easyui-linkbutton" iconCls="icon-search" onclick="search_but(${(po.project_id)!},${(po.class_id)!})">搜索</a>
        </div>
        <table cellspacing="0" cellpadding="0">
            <tbody>
            <tr>
                <td>
                    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="update_student_get_card(${(po.project_id)!},${(po.class_id)!})"
                       data-options="iconCls:'icon-ok',disabled:'true',plain:'true'" id="30119">确认收证</a>
                </td>

            </tr>
            </tbody>
        </table>
    </div>
    <table id="student_get_list" class="easyui-datagrid" style="width:100%;height:100%"
           rownumbers="true"
           pagination="true"
           pagesize="50"
           data-options="toolbar:'#seach_view_1111',url:'admin/project_student/listJson?project_id=${(po.project_id)!}&class_id=${(po.class_id)!}'">
        <thead>
        <tr>
            <th data-options="field:'ck',checkbox:true"></th>
            <th width="100" field="student_name"  align="center" sortable="true">学生姓名</th>
            <th width="100" field="student_sb_cart"  align="center" sortable="true">社保卡号</th>
            <th width="140" field="student_sb_ffd"  align="center" sortable="true">社保卡发放地</th>
            <th width="100" field="student_id_cart"  align="center" sortable="true">身份证号</th>
            <th width="120" field="student_sex_name" align="center" sortable="true">性别</th>
            <th width="100" field="student_birthday"  align="center" sortable="true">出生日期</th>
            <th width="120" field="student_hj_address"  align="center" sortable="true">户籍所在地</th>
            <th width="120" field="student_hj_address"  align="center" sortable="true">户籍地址</th>
            <th width="100" field="student_hk_type_name"  align="center" sortable="true">户口性质</th>
            <th width="100" field="student_is_marray_name"  align="center" sortable="true">婚姻状态</th>
            <th width="120" field="student_nationality_name"  align="center" sortable="true">民簇</th>
            <th width="120" field="student_political_name"  align="center" sortable="true">政治面貌</th>
            <th width="120" field="at_company"  align="center" sortable="true">所在单位</th>
            <th width="120" field="student_type_name"  align="center" sortable="true">人员类型</th>
            <th width="120" field="app_user_type_name"  align="center" sortable="true">鉴定人员类别</th>
            <th width="120" field="national_rank_name"  align="center" sortable="true">国家职业资格等级</th>
            <th width="120" field="up_national_rank_name"  align="center" sortable="true">上一级职业资格级别</th>
            <th width="120" field="is_not_testing_theory_name"  align="center" sortable="true">是否免考理论</th>
            <th width="120" field="student_cultural_name"  align="center" sortable="true">文化程度</th>
            <th width="120" field="student_high_school_record"  align="center" sortable="true">最高学历专业</th>
            <th width="120" field="student_title"  align="center" sortable="true">职称</th>
            <th width="120" field="student_duty"  align="center" sortable="true">职务</th>
            <th width="120" field="student_age_limit"  align="center" sortable="true">职业年限</th>
            <th width="120" field="student_duty_rank_name"  align="center" sortable="true">专业技术职务级别</th>
            <th width="120" field="student_work_age"  align="center" sortable="true">工龄</th>
            <th width="120" field="student_email"  align="center" sortable="true">电子邮箱</th>
            <th width="120" field="student_address"  align="center" sortable="true">联系地址</th>
            <th width="120" field="student_tel_phone"  align="center" sortable="true">联系电话</th>
            <th width="120" field="student_memo_1"  align="center" sortable="true">基础信息1</th>
            <th width="120" field="student_memo_2"  align="center" sortable="true">基础信息2</th>
            <th width="120" field="project_testing_type_name"  align="center" sortable="true">项目考试类别</th>
            <th width="120" field="project_testing_type_intro"  align="center" sortable="true">项目考试类别说明</th>
            <th width="120" field="project_is_pay_name"  align="center" sortable="true">是否缴费</th>
            <th width="120" field="project_admission_card"  align="center" sortable="true">准考证号</th>
            <th width="120" field="project_testing_address"  align="center" sortable="true">地点</th>
            <th width="120" field="project_testing_room"  align="center" sortable="true">试室</th>
            <th width="120" field="project_testing_seat"  align="center" sortable="true">座位号</th>
            <th width="120" field="project_testing_time"  align="center" sortable="true">时间</th>

            <th width="120" field="project_theory_testing_address"  align="center" sortable="true">理论地点</th>
            <th width="120" field="project_theory_testing_room"  align="center" sortable="true">理论试室</th>
            <th width="120" field="project_theory_testing_seat"  align="center" sortable="true">理论座位号</th>
            <th width="120" field="project_theory_testing_time"  align="center" sortable="true">理论时间</th>
            <th width="120" field="project_reality_testing_address"  align="center" sortable="true">实操地点</th>
            <th width="120" field="project_reality_testing_room"  align="center" sortable="true">实操试室</th>
            <th width="120" field="project_reality_testing_seat"  align="center" sortable="true">实操座位号</th>
            <th width="120" field="project_reality_testing_time"  align="center" sortable="true">实操时间</th>

            <th width="120" field="project_reality_result"  align="center" sortable="true">实操成绩</th>
            <th width="120" field="project_theory_result"  align="center" sortable="true">理论成绩</th>
            <th width="120" field="project_synthesis_result_name"  align="center" sortable="true">综合评定</th>
            <th width="120" field="project_is_card_name"  align="center" sortable="true">是否有证</th>
            <th width="120" field="project_card_code"  align="center" sortable="true">证书编号</th>
            <th width="120" field="project_is_get_card_name"  align="center" sortable="true">取证情况</th>
            <th width="120" field="project_teaching_teacher"  align="center" sortable="true">授课老师</th>
            <th width="120" field="project_examination"  align="center" sortable="true">考评员</th>
            <th width="120" field="status_name"  align="center" sortable="true">当前状态</th>

            <th width="140" field="create_time" align="center" sortable="true" data-options="formatter:function(value,row,index){
                         return formatDate(value);
                         } ">创建时间</th>
        </tr>
        </thead>
    </table>

<script>

    function search_but(project_id,class_id){
        $("#student_list").datagrid("reload",{project_id:project_id,class_id:class_id,student_name:$("#student_name").val(),student_id_cart:$("#student_id_cart").val()});
    }

    $(function(){
        $.ajax({
            url:"admin/index/get_user_permission",
            dataType:"json",
            success:function(data){
                $.each(data.obj,function(i,item){
                    $("#"+item.id).linkbutton("enable");
                });
            }
        });
    });

    function update_student_get_card(project_id,class_id){

        var student_list = $("#student_get_list").datagrid("getSelections");
        var student_str = "";

        if(student_list == null){
            $.messager.show({
                title:'提醒',
                msg:'请选择学生',
                showType:'fade',
                style:{
                    right:'',
                    bottom:''
                }
            });
            return;
        }

        $.each(student_list,function(i,item){
            if(i==0){
                student_str +=item.student_id;
            }else{
                student_str +=","+item.student_id;
            }
        });

        $.ajax({
            url:"admin/project_student/student_get_card",
            data:{project_id:project_id,class_id:class_id,students:student_str},
            dataType:"json",
            success:function(data){
                $.messager.alert("提示",data.msg);
                if(data.success == 1){
                    $("#student_list").datagrid("reload");
                }
            }
        });


    }

</script>